package com.meihua.baoleyi.base;

/**
 * @author qyc
 * @data 2017/10/16
 */
public class BaseResponse {

    String code;
    String msg;

    public boolean isSuccess(){
        if ("200".equals(code.trim())) {
            return true;
        }
        return false;
    }
    public boolean isTimeOut(){
        if ("501".equals(code.trim())) {
            return true;
        }
        return false;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
